package com.ruoyi.StarStudio.Domain;


import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.HashMap;
import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Meteorology {

    private long meteorology_id; //气象数据id
    @Excel(name = "温度")
    private double meteorology_temperature; //温度
    @Excel(name = "湿度")
    private double meteorology_humidity; //湿度
    @Excel(name = "二氧化碳浓度")
    private double meteorology_co2; //二氧化碳浓度
    @Excel(name = "光照强度")
    private double meteorology_illuminance; //光照强度
    @Excel(name = "降雨量")
    private double meteorology_rainfall; //降雨量
    @Excel(name = "风向")
    private double meteorology_wind_direction; //风向
    @Excel(name = "风速")
    private double meteorology_wind_speed; //风速
    @Excel(name = "更新时间")
    private Timestamp meteorology_updateTime; //更新时间
    private int zone_id;  //地块id
    @Excel(name = "所属地块")
    private String zone_name;  //地块名

    /** 请求参数 */
    private Map<String, Object> params;

    public Map<String, Object> getParams()
    {
        if (params == null)
        {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params)
    {
        this.params = params;
    }

}
